small refactor of cat slider functionality