clean rectangular side boxes