It sounds like a minor seizure. My friend's Doberman use to have something like this go on every so often. He would also lightly shake his head. It was like he was telling you "no". I would keep a close eye on him for sure. I hope it's nothing bad.