Merging layouts into one.