Only Text Quote

How can the Bible be "infallible" when from Genesis to Revelation slavery is commanded and condoned, but never condemned?