update the gallery