adjusted bar spacing so that multiple bars don't overlap