Try doing a training excersise where you leave for a few seconds then increasing to a half a min then a min five min etc. Until your dog is comfortable with you being gone for as long as you need to also try not to make a big deal about leaving and make sure you leave some fun stuff for your dog...