fixed a pesky issue with reordering gallery images