Slavery is slavery, whether its like the Africans brought out of Africa or the slaves Jews owned as recorded in the Bible. Owning another human being is morally wrong. Its worse when its legal or religiously condoned.
However, you may purchase male or female slaves from among the foreigners who live among you. You may also purchase the children of such resident foreigners, including those who have been born in your land. You may treat them as your property, passing them on to your children as a permanent inheritance. You may treat your slaves like this, but the people of Israel, your relatives, must never be treated this way. (Leviticus 25:44-46 NLT)
If you buy a Hebrew slave, he is to serve for only six years. Set him free in the seventh year, and he will owe you nothing for his freedom. If he was single when he became your slave and then married afterward, only he will go free in the seventh year. But if he was married before he became a slave, then his wife will be freed with him. If his master gave him a wife while he was a slave, and they had sons or daughters, then the man will be free in the seventh year, but his wife and children will still belong to his master. But the slave may plainly declare, 'I love my master, my wife, and my children. I would rather not go free.' If he does this, his master must present him before God. Then his master must take him to the door and publicly pierce his ear with an awl. After that, the slave will belong to his master forever. (Exodus 21:2-6 NLT)
When a man strikes his male or female slave with a rod so hard that the slave dies under his hand, he shall be punished. If, however, the slave survives for a day or two, he is not to be punished, since the slave is his own property. (Exodus 21:20-21 NAB)
From the New Testament:
Slaves, obey your earthly masters with deep respect and fear. Serve them sincerely as you would serve Christ. (Ephesians 6:5 NLT)
That the Bible condones slavery isn't a myth.