fixed several slowness / stuttering issues related to resizing