rewriting slider