1998 GMC Yukon

It starts shifting really hard after I go about 20 miles or so. I stop the car and turn off the engine for about a minute and it is OK for another 20 miles or so. Besides that it runs fine.