Variability of accretion flow in the core of the Seyfert galaxy NGC 4151