Update app.js

fixed bug on slide transitions