commit the gallery