Capitalism has created dangerous situations for workers worse then slavery! Countless people (including children) have died of work related injuries in capitalist societies throughout history.
When a slave dies well working, the master is disappointed that he just lost a valuable piece of property. On the other hand, a capitalist boss doesn't give a fuck if one of his workers dies, he can just pay someone else to do the job for the same price.
In 1833, the city of Lancashire reported deaths of a total of 401 workers under the age of 11 and 2,292 child laborer’s between the ages of 11 and 16. Factories were hot, crowded, and distracting with no safety regulations or protective equipment and child workers would frequently get caught and die in machines. The capitalist bosses didn't give a fuck that children were dying in their machines, children are replaceable.
This was the reality in the 19th century, before there were any safety laws whatsoever, and when Marx was analyzing these things. There wasn't any sort of socialism in North Korea, Cuba, or China when Marx was alive so they cannot be used to criticize his original ideas.