Refactoring around slider menu