animations added for sliding up and down elements and for changing tabs