make memory allocation contiguous