         initialize: ->
             templates = @collection.templates.get('templates')
             @constructor.template = templates['portfolios-index'].template
+            @isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test navigator.userAgent
 
         render: ->
             @$el.html @constructor.template portfolios: @collection.toJSON()

            found = false
            last = jQuery.extend {}, $outer_parent
            $prev_items = jQuery '.portfolio-wrapper .item-full'
            lastWindowPosition = @winYPos()

            # Find the next item that has a different y pos
            # The max length is 3 so no need for more than that

            $image_div = $new_items.find '.item-more div.images'
            $restOfImages = $image_div.find 'img:not(:first-child)'
            $restOfImages.hide()
            $new_items.slideDown 1000, -> $restOfImages.show()

            # Init the slideshow
            $image_div.slideshow scrollToOffset: scrollOffset

            # Scrolling won't happen from plugin unless there are images, so do manually
            if 0 is $image_div.length
                setTimeout ->
                    $new_items.smoothScroll scrollOffset
                , 300

            # Add arrow
