Improve arraySlice