slide method is updated