     # animating the size change
     @animate box_size, duration: @options.fxDuration, finish: =>
       @removeClass('lui-slideshow-resizing')
-      @__sliding = false
+      global.setTimeout((=>@__sliding = false), 50)
 
 
   # calculates the end size of the whole block

      @prev_button = new Icon(class: 'lui-icon-previous2').on('click', => @previous()),
      @next_button = new Icon(class: 'lui-icon-next2').on('click', => @next()))

    @on
      mouseenter: => @__hovering = true
      mouseleave: => @__hovering = false

    @append(@controls).slideTo(0)
    @play() if @options.autoplay

  #
  pause: ->
    if @_timer
      global.clearInterval(@_timer)
      delete(@_timer)

    return @
