You could use a global variable to store the start time of the layout and do actions after 5 seconds after the layout start like so:
* Global number layoutstart = 0
+System | Start of Layout
--Set layoutstart to time
+System | layoutstart < time-5
--Do stuff