How to make flexible tile?