resize poses vector as needed