added collapseDirection attribute for collapsible panels (in or out)