The present invention relates to a compressor (1) comprising a casing (2) that holds the elements inside, an electric motor having a rotor (3) and a stator (4), and a cylinder block (6) that provides bearing of the crankshaft (5) axially by an axial sliding bearing (7), wherein the weight effect of the rotor (3) and the crankshaft (5) and the vertical components of forces created during operation are reduced, thus decreasing the frictional forces at the bearing (7).