changed calculation on switchbar button size