Toggle shadow to improve scroll performace