Make ToC a hierarchy