Slavery is not a function of capitalism, though. Capitalism is being able to 1) firstly, own yourself and your body 2) thus sell your labour however you wish. It's the alternatives economic systems that prevent you from being free.
Putting emotions aside for a second, slavery is very inefficient in a free market. It is not a coincidence free countries are all capitalist (and vice versa).