fix slicing in PyPy