Added slider functionality for chat