added padding functionality to thumbnail tag