Generation of the sub/sections titles

First step towards the automatic TOC. The TOC slides will be generated
from to functions. First, this one (TOC_titles) creates all the titles
in a layer. Then, the second one will generate all the TOC slides with
predefined layouts.