fix edit form gallery