As for the male and female slaves you may have — you may acquire male and female slaves from the nations around you.
In context
42For they are my servants, whom I brought out of the land of Egypt — they must not be sold as slaves are sold. 43You must not rule over him harshly, but you must fear your God. 44As for the male and female slaves you may have — you may acquire male and female slaves from the nations around you. 45You may also buy them from the children of the settlers living among you, from their families born in your land, and they are to become your property. 46You may leave them to your children after you as an inheritance to possess; you may make them slaves permanently. But you must not rule harshly over your brothers, the Israelites, one over another.