Well, little did I know that jQuery already has slide functionality. I replaced my custom resizing code with the existing jQuery methods.