Code for collapsible sidebar