The bible is the Word of God, and God sometimes permits slavery...the same as He permits divorce. He uses it. The same as He uses you.
And the Koran is the last word of God.