editing html5 gallery code