To collapse all the layers listed in the timeline, all you need to do is collapse the top layer called "Main" (or the name of your component).

If you close (collapse) this layer and open it back up, you'll notice that all the layers inside this one are now collapsed.

Did this answer your question?