improve categorical scale layout