[jQuery] Galleria + UI Accordion not working

[jQuery] Galleria + UI Accordion not working


My goal is to create an accordion menu that exposes a group of
thumbnails in a galleria gallery (galleria is a jquery gallery
plugin).
The idea is that each header item represents a different gallery, so
clicking on that item exposes the gallery thumbs, which the user can
click to load the full sized picture in the main content area.
The two plugins are interacting poorly -- the gallery breaks when it's
inside a list that is an accordion. The accordion still works as
expected, but the list of thumbs is blank and does not load anything.
I'm thinking maybe the accordion plugin rebuilds the inner content of
the list items which destroys the event handler for the gallery, but
I'm not sure.
Can someone provide some insight about how to achieve my goal?
Thanks!