added for slide functionality