Re-adds slugs logic

slugs variable was accidentally removed when removing existing
categories section. This variable is needed in the categories form
partial, so this commit re-adds it.