There are 30 / 2 = <<30/2=15>>15 pictures hanging horizontally.
So there is a total of 15 + 5 = <<15+5=20>>20 pictures hanging either horizontally or haphazardly.
Therefore, there are 30 – 20 = <<30-20=10>>10 pictures hanging vertically.
#### 10