code: function SlicesFactory(width, height, lineXArray, lineYArray, options) {
    checkArgs.apply(null, arguments);
  
    var slices;
  
    if (options) {
      slices = new Slices(width, height, lineXArray, lineYArray, options);
    } else {
      slices = new Slices(width, height, lineXArray, lineYArray);
    }
  
    return slices.slice();
  }
docs: Instance factory