a fork of https://github.com/dimsemenov/PhotoSwipe