Added time slider functionality