add support for collapsible panels (test file: resources/LayoutTest.xml)