Select the menu on the left to expand / collapse table of contents (TOC) entries. Press button below to collapse all TOC except the top level headings.
If you only want to collapse level 3 headings press this button.