reptile lungs open and close because of the ribs surrounding them pressing down on them and then opening up with the help of muscles. the liver is also attached to the bottom of the lungs and when a muscle which is attached to the liver pulls, the liver moves away from the lungs and pulls them, making them bigger.