When the potassium ions move into the guard cells they increase the concentration. This causes water to move into the guard cells from more dilute areas by osmosis. The additional water leads to the guard cells swelling unevenly because the thicker, inner walls are less flexible than the thinner, outer walls. The stoma opens due to this uneven swelling.