Baby's finger stuck in door

A

I tried to apply ice but he wasnt liking i. I gave him tylenol and he is sleeping now. Its not broken but it does look very red and it bled.

What can I do to ease the pain. I cried more than he did