Does the Bible allow Slavery ?

I just wanted to know that because a lot of people say that and there is biblical verses who support it. Some say it allows sex slavery too.

I am against slavery but my book allows it.

How can I counter this when people bring it up ?