change css  width calculations