How to use the gallery formatter settings in a display suite code field?
May I suggest field slideshow if you havent tried that already.  Field Slideshow 


  Provides a Slideshow formatter for Image fields, using JQuery Cycle
  plugin.
  
  Compared to Views slideshows, building the slideshow from multiple
  nodes, this module builds it from a single node, with a multi-valued
  Image/Media/Field Collection field.