added gallery.withpanel