Cells with varying thickness of the liquid crystal layer