this is definitely not the most elegant way to do responsive photo re-ordering