fixed slide generation issue