Take slice tuples as inputs to apply_windowed_function.