1. slider: Refactoring and fix layout bug for opera