Fixed index variable for photo galleries