When I come to a stop my car starts to jerk really bad. if i completely stop it will shut off. it usually does it around 30 mph, and only does it after the car has been running for a while. if i floor it after it starts to do that its really sluggish, but then it will all of a sudden shift really hard into second and then its ok. it only does it in drive and reverse. What could it be???

[color=skyblue]