filter with arbitrary stride