Particle configurations and gelation in capillary suspensions