update gallery for master
update device layout.js