Accordion fix

Fixed the accordion so each panel is the size of the content in that
panel.