added init state and mobile slider.