slide transition for D3 slide: had wrong slide number after rearrangements