gallery.js: fix new CAN format