I'm not a native english speaker, so I have this doubt.
For example I have these two sentences:
At the time of taking the family picture she was next to her father
Or:
She was next to her father at the time of taking the family picture
or I could write it both ways
Best Answer
There is no rule to fix the position of "at the time of".
Both your examples are fine.