slider functionality added for gazepath animation