Side view of pages/sub pages

It would be great if there was a way to collapse all the page/subpages and expand, similar to how groups are treated in a table.

And also if you can set the default to have them all collapsed except for bookmarks.

Thanks.