Merging and resizing