Slavery in Islam

“Regarding the Islamic conquests, even at the time of Prophet Muhammad (pbuhap), the victorious Islamic army would take the women and sell them like slaves. Also, the Muslims would share them between each other and buy and sell them. That being said, during the battle, the Islamic army had also killed their fathers and husbands. So how would a woman accept this? How would a man draw close to her under these circumstances? Isn’t it humiliating? And what is the difference between these acts and what Daesh [ISIS] is doing today?”