Sidebar table of contents depth - fixes 464

Fixes #464.