Moved index gallery to custom shortcode. Should probably still refactor the code though