You're saying that the dog is jealous of the company? It sounds more like he is anxious, to me. Having sheltie in him, it would make sense if he was a bit anxious when strangers are around. Are you sure this isn't the case?