I try to have dinner before 7:30 or if later than that it's a small light dinner.
Otherwise I will get heartburn during the night.
What time is your usual dinner and what time do you go to bed?
And what are you snacking on now?
change the habit??
read a good book?
do some relaxing stretches or yoga?