change bar height fn