don't use window width

js and css width do not match, use changing property