You can prepare the rimmed glasses in advance by rimming them and storing them in a dry, cool place. However, it is preferable to rim the glass right before serving to ensure the salt and pepper combination stays fresh and adheres properly. But be aware that over time, the salt and pepper could absorb moisture and lose their texture.