Click the expand button to the left of the index/folder to view the sub-items, and click the collapse button to hide the sub-items.