Change number of squares in expanded mode