added toSlice on hashset