index gallery fix