Gallery click to collapse contents