It is not a slang term. It is a standard Spanish word, meaning 'to sleep'.
Examples
- Spanish: Tengo que irme a dormir porque mañana me tengo que levantar temprano.
- English: I have to go to sleep because I have to get up early tomorrow.
Teach and Learn Real World Spanish