Dynamic size for optiona layers div