rules and css adjustment for slider