dynamically updating the tiles width based on cols value