attacked by my dog

Can dogs get jealous over you being pregnant? I give him so much love and fuss but I haven't the past few days because I've been so busy, lastnight I went to give him some fuss and he didn't look too happy. So when I walked away he ran after me and bit my foot and his teeth were stuck in my slippers. He was going to bite me again so I called my husband and he was showing his teeth to him. He's never done this before and don't worry he won't be moving to our new home with us, we currently live with my husbands parents until after Christmas.  I'm just wondering if he's jealous because I'm pregnant he can sense it and I haven't been giving him as much attention? He's 10 years old Yorkshire terrier he's usually so loving but I don't trust him at all anymore. Today he's came over to me for fuss as if he's forgotten but I'm still on edge