Refactor slider panel