Actually it was probably the other way around. Slav doesn't come from slave, but slave comes from Slav.

That's because Germans, Turks and other empires were using slavic slaves for a long time.