move panel header before collapsing