Formation of membranes by repeating units.