fix for multiple galleries, only show one root element