What to do for hand swelling from a slammed car door?

Xray. The first thing to find out is whether you broke any bones, so get your hand xrayed. If it's just bruised, there's not much you can do except apply ice until the swelling goes down, then baby it until it heals.