set the index image height and width to be 100% of its container