smalloc: implement functional sliceOnto