Macromolecular switches for bilayer membranes