Adjust dimensions of UI elements