added conditional on image size for home-boxes