merging layouts