If you also mean "how to use slang expressions?", here's some advice:
1. Use it only after someone has already said it to you.
2. Don't assume everyone knows and uses slang in the same way, even if they are in the same city. It's very, very regionally and culturally influenced. When in doubt, stick with standard English.
3. Learn it only as you encounter it.