Use g` instead of g' for returning to the same position.