refactoring pageslide css