Add gallery functionality