title: jquery cycle2 get width of current slide
body: <p>I am using jQuery Cycle2 plugin <a href="http://jquery.malsup.com/cycle2/demo/basic.php" rel="nofollow">http://jquery.malsup.com/cycle2/demo/basic.php</a></p>
  
  <p>I need to grab the width of the current slide/image and then use that to set the width of another element.</p>
  
  <p>Each image may be a different width and I need a bar on top of the image to resize accordingly.</p>
  
  <pre><code>&lt;div class="cycle-slideshow"&gt;
  &lt;img src="http://malsup.github.com/images/p1.jpg"&gt;
  &lt;img src="http://malsup.github.com/images/p2.jpg"&gt;
  &lt;img src="http://malsup.github.com/images/p3.jpg"&gt;
  &lt;img src="http://malsup.github.com/images/p4.jpg"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>how can I get the width of the current/active slide?</p>