UV, Modify UV island when modifying mesh
Maybe you're talking about the Correct Face Attributes option which will change the UV as soon as you change the topology:

Also, when you slide an edge, make sure you have the Correct UVs option enabled in the Operator box: