I've no real advice but wanted to say I know that this is quite normal behaviour.
Is your dog neutered? I ask because often behaviour like this can be territorial. It will just take time - ultimately you were his & now he has to share - going to take some adjustment xx