Influence of magnetic domain landscape on the flux dynamics in superconductor/ferromagnet bilayers