restructure the gallery-edit page