When memories of past come back

Be gentle with yourself.

Remind yourself why the past is the past.

Give good wishes for everyone who comes to your mind.

And move on. The past is prevented from being vast by not making it last.