Curvable gratings