Gallery fixes made