fix create gallery