filter_slice_value now returns the index as well