Your ribcage has joints! The joints let your ribs move so that they lay open or flatter together and then the rest of the space your lungs need to breathe is inside your body, the diaphragm is a muscle that lays horizontally right about where your ribs end and it falls lower to make your lungs expand and rises again to empty them. Your tummy, obviously, is free to move to accommodate that.
Latest Answers