Container stowage problems are rich optimization problems with both high economic and environmental impact. These problems are typically decomposed into a master bay planning phase, which distributes containers to bay sections of the vessel, and a slot planning phase, which assigns a specific slot within the bay section to each container. In this paper, we extend existing models for slot planning by considering containers with dangerous goods. We show that our model can be solved to optimality in reasonable time using standard software.