Communicated by (xxxxxxxxxx)The dynamics of a two-soliton molecule bouncing on the reflecting atomic mirror under the effect of gravity has been studied by analytical and numerical methods. The analytical description is based on the variational approximation. In numerical simulations, we observe the resonance oscillations of the two-soliton's center-of-mass position and width, induced by modulated atomic mirror. Theoretical predictions are verified by numerical simulations of the nonlocal Gross-Pitaevskii equation (GPE) and qualitative agreement between them is found. Hamiltonian dynamic system for a dipolar Bose-Einstein condensates (BECs) has been studied.