Slavery in Islam - split from Gandhi thread

Re: Gandhi’s racism - split from Allama Iqbal thread

if it is legal then to take slaves according quran then why it is illegal now