making elements fit