Understanding structural flexibility of photosynthetic membranes