empty the gallery and update current progress