Added slide functionality