fix getDocRef in galleryClass.js