$(document).ready(function() {
  
  $('.scrollable').each(function() {
    var containerWidth = $(this).width();
    var elWidth = parseInt((containerWidth - 62) / 6);
    $(this).find('.scrollable-i').width(elWidth * 6);
    $(this).find('li').width(elWidth);
    
    $(this).append('<a class="next" /><a class="prev" />').scrollable({
      items: 'ul',
      size: 6
    });
    
  });
  
});

