Update main.js

added code to also hide gifs