barwidth on window.resize modified