adding CSS and slide animation