Can't get edges to marry up when applying texture to one side

Hi,
I am trying to apply two stone textures to a brick shape. The main texture is smooth but each end is a rough stone texture. because the brick has to be uv unwrapped, the edges are breaking away from each other. Does anyone know how I get around this problem, please?

So you have to UV unwrap it and add the two material to each sides… or what have you already done?? (hardly visible in this screen shot…) and if you also want to displace it then you have to have a transition at the edges…

Sorry, I’m not explaining myself very well. I have applied the materials the problem is, it is warping the edges. Please see new image

You have to stop the displacement towards the edges…

Bevel your edges and mix the two materials on the beveled faces

Thanks, I will try your suggestions and let you know if I get the results I need.