How to take slice of array without it turning into vector

OK, that’s more a matter of taste, but in that case, use transpose, which doesn’t allocate.