A lens module (60, 70, 80, 90, 1100,1380, 1700, 1701, 1800, 1900, 2000, 2100, 2200, 2300, 2400, 2401, 2500, 2600, 2601, 2700) for a folded camera module, comprising: a barrel (64, 74, 84, 94, 1102, 1114, 1314, 1720, 1722, 1920, 2202, 2302, 2402, 2502, 2602) comprising a cavity (61, 71, 81, 91, 1001, 1101, 1740, 1742, 2204, 2304, 2404, 2504, 2604, 2624) surrounded by cavity walls (62, 72, 82, 92, 1002, 1104, 2206, 2306, 2406, 2506, 2512); and N lens elements L 1 to L N aligned along a lens module optical axis, wherein N is equal to or greater than 3, wherein a first lens element L 1 faces an object side and wherein only a first portion of lens element L 1, downstream the object side lens surface, is completely surrounded by the cavity walls (62, 72, 82, 92, 1002, 1104, 2206, 2306, 2406, 2506, 2512), wherein the first portion of lens element L 1 that is completely surrounded by the cavity walls (62, 72, 82, 92, 1002, 1104, 2206, 2306, 2406, 2506, 2512) has a diameter smaller than a diameter of another portion of lens element L 1 that is not completely surrounded by the cavity walls (62, 72, 82, 92, 1002, 1104, 2206, 2306, 2406, 2506, 2512), wherein the height of the other portion of lens element L 1 that is not completely surrounded by the cavity walls is substantially equal to or has a height which is greater than the barrel height, wherein the cavity walls have an extremity (83,93,1003) which is shaped to act as a mechanical stop to prevent movement of the lens L1 in an X-Y plane, and wherein the first portion of the lens element L1 is shaped to fit the shape of the extremity such that the center of lens element L1 is substantially aligned with the optical axis. a barrel (64, 74, 84, 94, 1102, 1114, 1314, 1720, 1722, 1920, 2202, 2302, 2402, 2502, 2602) comprising a cavity (61, 71, 81, 91, 1001, 1101, 1740, 1742, 2204, 2304, 2404, 2504, 2604, 2624) surrounded by cavity walls (62, 72, 82, 92, 1002, 1104, 2206, 2306, 2406, 2506, 2512); and N lens elements L 1 to L N aligned along a lens module optical axis, wherein N is equal to or greater than 3, wherein a first lens element L 1 faces an object side and wherein only a first portion of lens element L 1, downstream the object side lens surface, is completely surrounded by the cavity walls (62, 72, 82, 92, 1002, 1104, 2206, 2306, 2406, 2506, 2512), wherein the first portion of lens element L 1 that is completely surrounded by the cavity walls (62, 72, 82, 92, 1002, 1104, 2206, 2306, 2406, 2506, 2512) has a diameter smaller than a diameter of another portion of lens element L 1 that is not completely surrounded by the cavity walls (62, 72, 82, 92, 1002, 1104, 2206, 2306, 2406, 2506, 2512), wherein the height of the other portion of lens element L 1 that is not completely surrounded by the cavity walls is substantially equal to or has a height which is greater than the barrel height, wherein the cavity walls have an extremity (83,93,1003) which is shaped to act as a mechanical stop to prevent movement of the lens L1 in an X-Y plane, and wherein the first portion of the lens element L1 is shaped to fit the shape of the extremity such that the center of lens element L1 is substantially aligned with the optical axis.