Execute callback on viewer initialization to propagate slice number.