SLIM: Subtrajectory-Level Elimination for More Effective Reasoning