added slide functionality