Hi - I've been getting something similar, usually off to the left hand side.
I have been putting it down to ligaments stretching. The books talk quite a bit about ligamnt pain aroubd the end of the 2nd tri and 3rd tri. I get it when I have been walking a lot, over-doing it or any number of other reasons. Lying down helps (though then the heartburn really starts).