2004 1500 ram idles unsually high

2004 dodge ram 1500 idles up to 2000 RPMs then down at when the vehicle is stopped in drive. sometimes it completely shuts off and i have to put it in park and then start it back up to drive again. read a few things that it might need the throttle body cleaned.

any suggestions? any experience this issue?

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0