fix slider display problem