Change from vertical gallery to grid