Use two pillows to support the head in a side-lying ... to your head, rib cage, and partially to the painful shoulder. But ...
Right rib cage pain is a common complaint ... waking up or you know you sleep on the right side, try sleeping on your back ...