changed gallery to class