In your modules, you can simply just click on small caret dropdown next to your folders and it will either expand or collapse. You can also click the “collapse all” or “expand all” button to collapse or expand all your modules and assignments.