Split template into subsections