Gender, migration and the End of Slavery