Thickness transition of a rigid supramolecular polymer.