Below are links to multi-part tutorials describing how to work with the PopupGallery Tool:
Adding Groups and Items to the PopupGalleryTool
Creating a Gallery of Styles
Filtering a Group in the PopupGalleryTool