core: add support of multiple layouts (task #11274)