fixing slide generation