Add gallery functionality.