Added resize event to width being changed