Move time-slices computation to client-side