update css for slide