Dialect is the form of a language that people speak in a particular part of a country, containing some different words and grammar, etc.
“A regional dialect.”
“The poem is written in northern dialect.”
Slang is a very informal language that is usually spoken rather than written, used especially by particular groups of people.
“A slang expression.”
“'Chicken' is slang for someone who isn't very brave.”