Charcter rotates when moving on slope, how to stop it from happening?

so my character keeps rotating when im moving with a slope and i was wondering how to stop it from happening so when i move on the slope it dosent get affected? :confused: