Edge-on or nearly edge-on galaxies allow direct measurements of their disk thicknesses. It is known that the ratio of the radial to vertical disk scales can be directly related to the mass fraction of dark matter within the disk via the Toomre parameter and the squared ratio of the stellar radial to vertical dispersions. Thus, for edge-on galaxies, the dark halo mass can be independently estimated, but this requires knowing the proportionality coefficient. This paper shows how the estimate can potentially be refined using only a single IR image of the galaxy (to find the mass) and additional conditions (Tully-Fisher relation, disk equilibrium in the vertical direction). Moreover, the proportionality coefficient dependence on the distance R follows the theoretical expectation (the NFW profile is used in the paper) and allows one to reconstruct the parameters of the dark halo itself. Preliminary results of applying the method to a sample of distant galaxies (up to z ∼ 3) obtained from JWST observations are demonstrated. It is shown that for these galaxies the dark halo mass is larger with new method, and it and other parameters are in good agreement with the literature. It is found that the fraction of the dark halo mass relative to the disk mass within five exponential scales increases toward the present epoch, which may be a sign of the expected adiabatic contraction of the dark halo toward the center.