fix galleryClass.js