I mean, alcohol doesn't inherently make people say slurs. If you're saying slurs when you're drunk it is in fact, due to have the motivation to say them in general, and the alcohol has lowered your inhibitions enough that you don't care about the repercussions (at the time) of using them.
You therefore need to a) stop drinking so much and b) work through whatever underlying issues you have which makes you think it's funny to call people slurs.
Perhaps you should look at learning about the origins of those slurs, the specific discrimination the groups those slurs are conventionally applied against have faced, and think about how you would feel in that situation if you had to experience that discrimination and face those slurs knowing what they actually mean.