add support for sections in layouts

fixes #7