Check and maybe replace the Mass Airflow Sensor. My 97 started acting up. Sluggish performance over time but recently started to hesitate very bad on takeoff and when passing. Replaced MAS and it’s like a new truck. Check for a rebuilt at Oreilly.