Add slide animation with math calculate