Compact electromechanical cylinders