Adjust grid layout and position.