addign slide functionality