Precompute size of array in ToSlice as well