from a technical standpoint, there are a couple things that i do when i practice/play this excerpt that may be helpful to you. one is keep the hair of the bow tilted (stick tilted toward you) for the quiet legato sections, as well as playing a bit sul tasto. it really can't be too quiet. tilting the stick also changes the angle of the hair for the string crossings and helps me stay even and legato. also, in general i like to think of the placement of your body in relationship to your bass, as if you have a "position" for playing on each string, if that makes sense. on this excerpt though, it starts on the E string, but i feel like i have to be in the position of playing on G from the very beginning. sometimes i play the C on the G string before i start so as to set up that position, so that when i reach the top of the phrase, i'm physically prepared for legato playing on the G string, rather than shifting into that position and getting there too late (i hope this is not confusing, it's hard to explain in text). everything else that's been suggested here is good advice as well. playing it for muscle memory is the right idea too, especially stuff like the big shift up to Ab in the F minor section... it really has to be automatic. maybe this is helpful, maybe not, but keep us posted on what's working for you. good luck!