Handles case where from_stride step does not divide the number of elements evenly