calculate slider widths automatically