If you are readying a passage and conclude that God condones violence or slavery or evil, then you are reading it wrong.It seems unnecessarily hard to believe that the Old Testament God and the New Testament God are the same.
The two descriptions are 100% complete opposites in every way. They don't even slightly resemble each other.