Horizontally has 2 different meanings across 1 category:
Adverb
in a horizontal direction
"a gallery quite often is added to make use of space vertically as well as horizontally"
In a horizontal direction or position.
"The engineer adjusted the camera lens horizontally to align perfectly with the horizon line."