Fix layers in subplot_grid. See #302.