extract to template
use photoswipe