changed gallery to fit in grid and to squares