Adds gallery functionality