generating colors for time slices