added support for multiple photoswipe destinations

and fixed the order bug