If its only getting light from one direction it will grow in that direction. The pot also looks very big for such a small plant you should check and see how much of the soil is occupied by roots and downsize! If a small amount of roots are surrounded by a larger amount of soil, when you water the soil the excess moisture isn't getting absorbed and could lead to root rot! I don't know what you have! maybe its a sedum? Or a naturally trailing plant of sorts and you don't actually have a problem?