Sliding working up hill when its not supposed to

i kind of found a fix by setting the clamping to -1 to 1 it actually stops the play from going up while sliding all i had to do other than that is remove the the subtract 1