gallery submenu fix