Changed slide effect to use css transitions