Fix wonky resizing with jquery stop