Experimental support for collapsable headers

Closes #335