Infidelity- how do you heal the pain?

How do you heal the pain and stop the intrusive thoughts... I have the understanding of what led to the affair, forgiveness and relationship repaired, but I still can't get rid of the pain and the thoughts... I just want to get rid of the pain and stop thinking about it.