update and finish page gallery