Use .css() instead of .width()/.height()