When you chew gum, your mouth makes more spit. That acts as a buffer to acid. You also swallow more when you chew gum, and that pushes acid down.
Smoking can make things worse. You’re likely to make less spit and more stomach acid.
If your heartburn is worse when you lie down, try raising the head of your bed so your head and chest are higher than your feet. But don’t do it with pillows. That can put your head at an angle that can put more pressure on your stomach, making things worse. Instead, try putting 6-inch blocks under the bed posts at the head of the bed.
Sleeping on your left side also can help. Studies show lying on your right side can make heartburn worse. The left position seems to put less pressure on the muscle connecting your stomach and esophagus.