refactored transitions & added .slide class to elements