Modelling the position of cell profiles allowing for both inhomegeneity and interaction