update border widths