We have used Molecular Dynamics simulations to obtain the monomer density profiles for real linear and ring polymer chains of 360 monomers length with different topological structures such as simple knots: 31, 61, 91, 10124, complex knots 313151 and twisted knots with n = 10 and n = 20 in a slit geometry of two parallel walls with one attractive and another repulsive surface. We have used Large-scale Atomic/Molecular Massively Parallel Simulator (LAMMPS) software to perform simulations with the Verlet integration algorithm. The interactions between monomers were simulated as Lennard-Jones 12-6 potential, for bonds we have used Finitely Extensible Nonlinear Elastic (FENE) potential and the interaction with the walls was taken into account via Lennard-Jones 9-3 potential. We observed that topologically complex polymers have lower monomer density profiles near the attractive wall, but at some distance in the direction to the repulsive wall this tendency changes to the opposite. We showed that most complex twisted knots have two maxima in narrow slits. In the wide slits we do not observe such relation for twisted knots at higher temperatures. These results are important for better understanding the nature of the depletion forces which arise in a slit geometry of two parallel walls with one attractive and one repulsive wall.