To enable or disable collapse/expand (aka folding), check or unckeck Collapse/Expand in the Extras menu:

collapse-expand-switch.gif