Question: how to stop thinking about girlfriends past?
Answer: Step 1) Acknowledge that this is your problem, not your girlfriend's.
Step 2) Stop talking about your girlfriend's past (for the most part).
Step 3) Get clear about your values.
Step 4) Realize that it is, in many ways, a new world out there.
Step 5) Don't be a hypocrite.