fix main.js

fix bug:gallery img disapear after click
add:start/stopRotate