Hydraulic jack for slewing and lifting