Added auto redimension to merge