On the influence of gravity on density-dependent incompressible periodic fluids