As I understand it, this is pain under the rib cage, which can also happen from ulcer. Do not take an NSAID, which can aggravate ulcers.
You need an exam now, not later..this type of pain in this location is not a self help situation. Gallbladder disease can become serious if not treated.
And, I would see your doctor regardless of if this pain comes and goes. Just because it might go temporarily, does not mean it is not ulcer, gallbladder, or other serious problem.
Let me know if you have further questions.
Please do not forget a positive rating.