fix glalery not loading after tree, align in gallery sub menu items