fix modal slide animation not working