Move last child to first position
===

My HTML:

      <div id="my-slider">
    	<img src="/slider/pic/bf3.jpg" alt="picture">
    	<img src="/slider/pic/bf3_cq.jpg" alt="picture">
        <!-- etc -->
      </div>

On specific event I want to move last img tag to first position (according to parent)

I try:

        curr.css('left', 0);
        curr.prepend(curr.parent()); 

I can change css, but second line raising error:

> HierarchyRequestError: Node cannot be inserted at the specified point
> in the hierarchy

Could someone give me any advice?

