added variables with computations for adjusting widths of sidebar elements