reset Gallery.js and back it up, appending has to be rethinked