PageItem adjusts to layout changes