Refactoring gallery.js and adding new design page(zaku)