It's the reverse: the word "slave" derives from "Slav", because many Slavs were used a slaves in ancient times.
This leads to the next question: where does "Slav" itself come from? It appears to derive from a Slavic word meaning "speech".