Get him to the vet right away, he may have gotten into something poisonous!!
Get off the computer and get him to the vet he could be bloating meaning something g stuck in his stomach, he could ha ve been bitten by something but what you describe happened to my dog and he was bloating. Take him to the vet please