trust me this will happen lifetime. The more we want to avoid thinking about something the more we get reminded about it. Just kee yourself busy. That's the only solution and ofcourse its a temporary thing. also many people say meditation is good but i haven't tried that yet so yeah try that too.