Determine box size based on molecules