The invention relates to a breeding building (100) for raising pigs, said building (100) comprising: - a corridor, - a box (108) arranged along the corridor and separated from the corridor by a separation wall (110) which along the corridor, - guiding means provided for guiding each partition wall (110) of a first position, where the partition wall (110) does not encroach on the corridor, at a second position where the partition wall (110) ) encroaches on the corridor and vice versa, and - actuating means provided for moving each partition wall (110) from the first position to the second position and vice versa.