optimize the preview css