Set up auto-resizing in category.js