Thanks for posting your query.
If you are diagnosed with gastritis
which is inflammation in the protective lining of the stomach, then you need to continue Pepsid. However, pain that may get worse by taking food suggest peptic ulcer
. both ulcer and inflammation can appear simultaneously.
for relieving spasmodic pain of stomach.You may also use Antacid
Avoid spicy food and carbonated drinks, avoid smoking and alcohol.
You should also get yourself test for H.pylori, which is most common cause of gastritis and need different prescription to eradicate it.
Hope it helps.