what year did the united kingdom pass he law that you were not allowed to own slaves?

(it was not that long ago)