undo gallery changes