Number of render slots
During this commit a constant named IMA_MAX_RENDER_SLOT was introduced and set to 8.

You'd have to change the line

#define IMA_MAX_RENDER_SLOT     8


in source/blender/makesdna/DNA_image_types.h to something else and re-compile to change the number of slots.