Just events binding and unbinding style.
Use jQuery to get element width and don't do it manually.