Create a layout stack based on the given layout templates.