dynamically update portfolio size