Check the temp of the trans fluid when it does that. An infrared temp gun would be helpful, just shoot the bottom of the trans pan. A lot of times when you have hard shifting its tied to a bad TPS or a short in the TB harness at the TB.