Cap the palette width to 5, looks better this way.