If you added the slider value to the value[0] of your null, you could position the null wherever you wanted, then keyframe your slider from 0 to, say 500, then your null would move from wherever you’ve manually put it, to wherever the slider tells it to go. If you get what I mean.
This expression takes the current position [value[0],value[1]] and adds to the x position – value[0] – whatever the slider is set to.
But going back to your original point, it sounds like parenting would be perfect for this – if you make Null B the child of Null A, you can place it wherever you like, and then it will also follow Null A. No expressions required.
offset=thisComp.layer("Null 2").effect("Slider Control")("Slider");
[value[0]+offset,value[1]]