A detailed analysis of flow and heat transfer due to moving slit within the various positions of the square cavity is discussed. The slit is strategically positioned and examined at three distinct locations within the square cavity i.e. left, middle and right. Constraints of the square cavity are defined for horizontal and vertical walls. The top horizontal wall is considered to be adiabatic while the other three walls of the cavity are cold. The upper surface of slit is heated and movable towards the left side of the square cavity while the other three walls are immovable and cold. The fluid flow dynamics and heat transfer within the enclosed cavity are governed by fundamental principles of mass, momentum and energy conservation. These governing principles manifest as intricate mathematical equations, specifically nonlinear partial differential equations accompanied with boundary conditions. The key parameters under consideration include the Reynolds number (250≤Re≤1500) and Richardson number (0.01≤Ri≤5) at a fixed Prandtl number (Pr=6.2). These parameters are analysed through variations in velocities, temperature profiles, isotherms and streamlines. In the computational framework, the momentum and temperature equations are addressed through quadratic interpolation, while linear interpolation is applied to handle the pressure equation. The numerical solution, utilizing Newton's technique and the PARADISO solver, is rigorously validated against existing research methodologies, establishing its methodological reliability. Higher Reynolds numbers shift the primary vortex towards the middle and create corner recirculation zones, more uniform heat distribution, while higher Richardson numbers increase buoyancy forces, reducing isotherm contours and affecting heat distribution. The local Nusselt number increases with the increase in Reynolds numbers but shows small changes with the increase in Richardson number. The value of Nusselt number decreases as the position of slit changes from left to right.