Added gallery functionality