2D segmetns made contiguous