Allow for filtering when creating derived slices