Your fridge needs a gap of around 5cm on either side and at the back. This allows proper air circulation and ventilation, especially for the coils which are typically located at the back.