after_length = list(np.array(events["durations"])[events["onsets_time"]>after])[:number]