Press the left mouse button to hide behind the jars and crates when the guards shine their light towards you so they do not see you.