application.js - gallery