Thin polymeric layers for spatial light modulators