make the slice to pointer slice