     @dimensions.thumbnails = false if @options.thumbnails
     addClass @overlay, 'choco-hideless'
     @
+
+  _onResize: (event) =>
+    image = @images[@current]
+    @updateDimensions image.width, image.height
+
+  _toggleThumbnails: (event) =>
+    current = @images[@current]
+    status  = hasClass @thumbnails, 'choco-hide'
+
+    if isStorage
+      localStorage.setItem 'choco-thumbnails', if status then 1 else 0
+
+    if status
+      removeClass @thumbnails, 'choco-hide'
+      removeClass event.target, 'choco-hide'
+    else
+      addClass @thumbnails, 'choco-hide'
+      addClass event.target, 'choco-hide'
+
+    @updateDimensions current.width, current.height if current
+
 
   ###
    Private method


      if @options.thumbnails
        @thumbnails.innerHTML = ''
        removeHandler @overlay, 'click', '.choc-thumbnails-toggle'

      removeHandler window, 'resize'

      @current = null


      addHandler thumbnail, 'click', -> _this.open toInt @getAttribute 'data-cid'
      setStyle thumbnail, "background-image": "url(#{image})"

    addHandler @overlay, 'click', @_toggleThumbnails, '.choco-thumbnails-toggle'

    if isStorage and not hasClass @thumbnails, 'choco-hide'
      status = localStorage.getItem('choco-thumbnails') or 1
