set timeline drag left and drag right function