The vertical structure of debris disks and the impact of gas