Move explanations to queue.js

Check capacity bounds when resizing