add calculation of next slot and cache this information