Dynamics of charge collection in pixelated semiconductor sensor studied with heavy ions and Timepix