Handle resize in gears