turning each slide into triplets, adjusting animations accordingly