A new algorithm to split and merge ultra-high resolution 3D images