adding number of slides value and preview