 
     adjustSlidesSize $children
 
+  addPagination = =>
+    return unless @options.pagination
+    $(el).append($pagination)
+
+    $children.each (i) ->
+      addPaginationItem(i)
+
+  addPaginationItem = (i) =>
+    unless i >= 0
+      i = @size() - 1 # size is not zero indexed
+
+    $pagination.append $("<a>",
+      href: "##{i}"
+    )
+
   loadImage = ($img, callback) =>
     $("<img>",
         src: $img.attr('src')

        .css
          left: upcoming_position
          display: 'block'

    $control.animate
      useTranslate3d: @mobile


      adjustImagePosition $('img', this).not('.keep-original')

  findMultiplier = =>
    if @size() == 1 then 1 else 3

