changed some script for the photoswipe