Baby in rib

So my son loves to rest his foot in my right rib. It's really tender, it's not broken just sore. Is there any way to get him to move out of there?? lol he's literally dragging his foot right up under my rib and it's really uncomfortable. Lol I'm 27 weeks