works transition handle
setting global indexes, scale and max, min sizes for gallery