Slight layer shift when changing filament or hitting pause

I would imagine this is a pretty common problem but has anyone managed to get their printer dialed in to go exactly back to where it was printing prior to either pausing a print and/or changing out the filament?

I always seem to get a little step when the printer gets back to work.