changed name to slice iterator and collect slices