add lock check to scope.previousSlide