In the Bible, God is not the author of slavery. Slavery originated with humans. He worked along with it and tolerated it as with human suffering until he takes action in the future —as the Bible explains.
Exodus 21:20-21 “Anyone who beats their male or female slave with a rod must be punished if the slave dies as a direct result, but they are not to be punished if the slave recovers after a day or two, since the slave is their property."
You are telling me God did not author this? Who did? And which parts of the bible are authored by God and which parts are authored by man?