Slicing, compacting, slicing and compacting, toArrayBuffer