I'm afraid you can't use 'to contain' in your example. You can use to-infinitive after a noun to express 'purpose'. ...'several stories to be read in front of the fireplace'. (I'm not a teacher, so let's see what they tell you).
Student or Learner