set_width function

set_width - calculates width (number of columns with circles)