Both, but in a vertical orientation the 8 cm, roughly 3" distance would be sufficient as the suction is not that strong from the bottom, where we would get into trouble in the horizontal orietation is the back flushing would stir the sand so there is suspended sand to be sucked in when the direction reverses to the normal direction.