Use explicit `slice` objects for indices

Fixes pypy tests, please document this somewhere :)