Try to prop up on a pillow more when you are in bed, if the pain radiates under the right ribs up around to your shoulder blades and is severe could be Gall Baldder, say No to late night Beers, cue out Fatty food ,go Low fat, dont eat several hours before bed, could be Gall Bladder Attack, check with your Doc,