error in last window (e.g. transition to ggplot); I think when nlayers(processed_brick) is divisible by nc*nr...