Proper resize in sleep mode