Slice a stream