document.addEventListener('DOMContentLoaded', function(){ Code.photoSwipe('a', '#Gallery', {loop: false}); }, false); body { padding: 0; margin: 0 }