Conditions of hydrodynamic instability appearance in fluid thin layers with changes in time thickness and density gradient