Using jQuery and jQueryUI for sorting and dragging images in gallery.