They are designed to be installed vertically, but each end of the elements is sealed so water enters through the centre and then passes through the element and exits from the outer surface.
The only problems could be risk of leakage and reduced efficiency if the filter housings don't fill completely during operation.
Try it and see, you can always re-think it afterwards if is isn't satisfactory.