Gary,
That's your Idle Air Controller and it could be the source of your problem. Supposed to control the amount of throttle when your coming to a stop so the butterfly doesn't slam shut and starve the engine of air. You can take it off and clean it or just replace it.